// compentents/teacherdetail/teachdetail.js
const app = getApp()
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tcid: {
      type: String,
    }
  },
  lifetimes:{
    ready(){
      // console.log(this.properties);
    }
  },
  pageLifetimes: {
    show() {
      const teacherData = app.globalData.teachData
      this.setData({
        teachGovGrade: teacherData.find(data => data._id == this.data.tcid)
      })
    },
  },
  /**
   * 组件的初始数据
   */
  data: {
    teachGovGrade: ""
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})